package vn.smartoffice.promail.services.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.zkoss.calendar.api.CalendarEvent;

import vn.smartoffice.promail.entity.MailCalendar;
import vn.smartoffice.promail.mapper.MailCalendarMapper;
import vn.smartoffice.promail.services.BaseService;
import vn.smartoffice.promail.services.MailCalendarService;

@Service("mailCalendarService")
@Transactional
public class MailCalendarServiceImpl extends BaseService<MailCalendar, MailCalendarMapper> implements
		MailCalendarService {

	@Autowired
	public MailCalendarServiceImpl(MailCalendarMapper mapper) {
		super(mapper);
	}

	@Override
	public List<CalendarEvent> findByUserId(long userId) {
		return mapper.findByUserId(userId);
	}

}
